package jp.co.technotree.apl.dao.emp;

import java.sql.SQLException;

import javax.sql.RowSet;

import jp.co.technotree.apl.dao.emp.EmpBean;
import jp.co.technotree.common.dao.RowMapper;

public class MasterEmpRowMapper implements RowMapper{

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	public Object createObject(RowSet rowSet) throws SQLException {
		EmpBean emp = new EmpBean();

		try{
			emp.setId(rowSet.getLong("id"));

			emp.setEnableCate(rowSet.getString("enable_cate"));
			emp.setEmpCD(rowSet.getString("emp_cd"));
			emp.setEmpNm(rowSet.getString("emp_nm"));
			emp.setPasswd(rowSet.getString("passwd"));
			emp.setAdminKbn(rowSet.getString("admin_kbn"));
			emp.setNote(rowSet.getString("note"));
			emp.setCreateEmpCd(rowSet.getString("create_emp_cd"));
			emp.setCreateDate(rowSet.getTimestamp("create_date"));

		}catch(Exception ex){

		}
		return emp;
	}


}
